/*
 * Project Name spring-boot-tools
 * File Name BaseEntity
 * Package Name com.huxiaosu.tools.mybatis.entity
 * Create Time 2024/7/9
 * Create by name：liujie
 */
package com.huxiaosu.tools.mybatis.base.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.huxiaosu.tools.autocreate.annotation.ColumnExtend;
import lombok.Data;

import java.io.Serializable;
import java.sql.JDBCType;

/**
 * Description
 *
 * @author liujie
 * @date 2024/7/9 14:35
 */
@Data
public class BaseEntity implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ColumnExtend(comment = "主键自增 ID",type = JDBCType.INTEGER,length = 11)
    private Integer id;
    @TableField(value = "create_user_id", fill = FieldFill.INSERT)
    @ColumnExtend(comment = "创建人",type = JDBCType.INTEGER,length = 11)
    private Integer createUserId;
    @TableField(value = "update_user_id", fill = FieldFill.UPDATE)
    @ColumnExtend(comment = "更新人",type = JDBCType.INTEGER,length = 11)
    private Integer updateUserId;
    @TableField(value = "delete_user_id", fill = FieldFill.UPDATE)
    @ColumnExtend(comment = "删除人",type = JDBCType.INTEGER,length = 11)
    private Integer deleteUserId;
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    @ColumnExtend(comment = "创建时间",type = JDBCType.TIMESTAMP)
    private java.util.Date createDate;
    @TableField(value = "update_date", fill = FieldFill.UPDATE)
    @ColumnExtend(comment = "更新时间",type = JDBCType.TIMESTAMP)
    private java.util.Date updateDate;
    @TableField(value = "delete_date", fill = FieldFill.UPDATE)
    @ColumnExtend(comment = "删除时间",type = JDBCType.TIMESTAMP)
    private java.util.Date deleteDate;
    @TableLogic
    @ColumnExtend(comment = "删除标识",type = JDBCType.BIT,length = 11)
    private boolean deleteMark;
}